package com.windy.kafka.trace.controller;

import com.windy.kafka.trace.annotation.MessageSender;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by liyufeng on 2022/3/24
 */
@RestController
public class HelloKafkaSenderController {
    @GetMapping("hi")
    @MessageSender(topic = "test", key = "test")
    public String sayHi() {
        return "hello kafka";
    }
}
